Fix sysroot detection which would result in /usr/lib/lib/rustlib
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Wed, 13 Sep 2023 11:57:58 +0000 (12:57 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 13 Sep 2023 11:57:58 +0000 (12:57 +0100)
commit5240e07945e1a02894368b194dd668db53524a78
tree5d15f6a25cae00899a47edfe5edcf1d1ae383526
parentcb981e236e7113541544682dfd91d96d039f8a5c
Fix sysroot detection which would result in /usr/lib/lib/rustlib

Bug: https://github.com/rust-lang/rust/issues/109994

This patch is a mixture of two upstream fix attempts. The first from
https://github.com/rust-lang/rust/pull/108376 didn't actually solve the
problem in Debian's case. After reporting that in $Bug, a second attempt is
made at https://github.com/rust-lang/rust/pull/110281, which worked.

Gbp-Pq: Name u-fix-sysroot-detection-logic.patch
compiler/rustc_session/src/filesearch.rs